package com.xiaoniu.lib_keleim;

public enum Schemes {

    WEB_SOCKET(1, "WebSocket"),
    MQTT(2, "MQTT"),
    RONGYUN(3, "融云"),
    TX_IM(4, "腾讯IM"),
    NETEASE(5, "网易云信"),

    LOCALHOST(10, "本机"),
    BIZ_SERVER(11, "业务服务器");


    private int type;
    private String name;

    private Schemes(int type, String name) {
        this.type = type;
        this.name = name();
    }

    public int getType() {
        return type;
    }

    public int getP2PType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setName(String name) {
        this.name = name;
    }
}
